import request from '@/utils/request'

export const getDepartment = () => request.get('/company/department')
export const getManagerList = () => request.get('/sys/user/simple')
export const addDepartment = data => request.post('/company/department', data)
export const getDepartmentDetail = id => request(`/company/department/${id}`)
export const updateDepartment = data => request.put('/company/department/' + data.id, data)
export const delDepartment = id => request.delete(`/company/department/${id}`)
